﻿using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Data;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Runtime.Serialization;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace CustomizationMaintEntry
{
    [HelpKeyword("vs.data.DataSet"), DesignerCategory("code"), ToolboxItem(false), XmlRoot("CustomizationDS"), XmlSchemaProvider("GetTypedDataSetSchema")]
    [System.Serializable]
    public class CustomizationDS : DataSet
    {
        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        public delegate void ControlsRowChangeEventHandler(object sender, CustomizationDS.ControlsRowChangeEvent e);

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        public delegate void PropertiesRowChangeEventHandler(object sender, CustomizationDS.PropertiesRowChangeEvent e);

        [XmlSchemaProvider("GetTypedTableSchema")]
        [System.Serializable]
        public class ControlsDataTable : DataTable, System.Collections.IEnumerable
        {
            private DataColumn columnFormsID;

            private DataColumn columnControlName;

            private DataColumn columnKey;

            private DataColumn columnParentControlKey;

            private DataColumn columnControlType;

            private DataColumn columnCompany;

            private DataColumn columnPlant;

            private DataColumn columnDcdUserId;

            private DataColumn columnGroupID;

            private DataColumn columnControlsID;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event CustomizationDS.ControlsRowChangeEventHandler ControlsRowChanging;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event CustomizationDS.ControlsRowChangeEventHandler ControlsRowChanged;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event CustomizationDS.ControlsRowChangeEventHandler ControlsRowDeleting;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event CustomizationDS.ControlsRowChangeEventHandler ControlsRowDeleted;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn FormsIDColumn
            {
                get
                {
                    return this.columnFormsID;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn ControlNameColumn
            {
                get
                {
                    return this.columnControlName;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn KeyColumn
            {
                get
                {
                    return this.columnKey;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn ParentControlKeyColumn
            {
                get
                {
                    return this.columnParentControlKey;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn ControlTypeColumn
            {
                get
                {
                    return this.columnControlType;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn CompanyColumn
            {
                get
                {
                    return this.columnCompany;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn PlantColumn
            {
                get
                {
                    return this.columnPlant;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn DcdUserIdColumn
            {
                get
                {
                    return this.columnDcdUserId;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn GroupIDColumn
            {
                get
                {
                    return this.columnGroupID;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn ControlsIDColumn
            {
                get
                {
                    return this.columnControlsID;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), Browsable(false), System.Diagnostics.DebuggerNonUserCode]
            public int Count
            {
                get
                {
                    return base.Rows.Count;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public CustomizationDS.ControlsRow this[int index]
            {
                get
                {
                    return (CustomizationDS.ControlsRow)base.Rows[index];
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public ControlsDataTable()
            {
                base.TableName = "Controls";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            internal ControlsDataTable(DataTable table)
            {
                base.TableName = table.TableName;
                if (table.CaseSensitive != table.DataSet.CaseSensitive)
                {
                    base.CaseSensitive = table.CaseSensitive;
                }
                if (table.Locale.ToString() != table.DataSet.Locale.ToString())
                {
                    base.Locale = table.Locale;
                }
                if (table.Namespace != table.DataSet.Namespace)
                {
                    base.Namespace = table.Namespace;
                }
                base.Prefix = table.Prefix;
                base.MinimumCapacity = table.MinimumCapacity;
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected ControlsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
            {
                this.InitVars();
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public void AddControlsRow(CustomizationDS.ControlsRow row)
            {
                base.Rows.Add(row);
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public CustomizationDS.ControlsRow AddControlsRow(string FormsID, string ControlName, string Key, string ParentControlKey, string ControlType, string Company, string Plant, string DcdUserId, string GroupID, string ControlsID)
            {
                CustomizationDS.ControlsRow controlsRow = (CustomizationDS.ControlsRow)base.NewRow();
                object[] itemArray = new object[]
                {
                    FormsID,
                    ControlName,
                    Key,
                    ParentControlKey,
                    ControlType,
                    Company,
                    Plant,
                    DcdUserId,
                    GroupID,
                    ControlsID
                };
                controlsRow.ItemArray = itemArray;
                base.Rows.Add(controlsRow);
                return controlsRow;
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public virtual System.Collections.IEnumerator GetEnumerator()
            {
                return base.Rows.GetEnumerator();
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public override DataTable Clone()
            {
                CustomizationDS.ControlsDataTable controlsDataTable = (CustomizationDS.ControlsDataTable)base.Clone();
                controlsDataTable.InitVars();
                return controlsDataTable;
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override DataTable CreateInstance()
            {
                return new CustomizationDS.ControlsDataTable();
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            internal void InitVars()
            {
                this.columnFormsID = base.Columns["FormsID"];
                this.columnControlName = base.Columns["ControlName"];
                this.columnKey = base.Columns["Key"];
                this.columnParentControlKey = base.Columns["ParentControlKey"];
                this.columnControlType = base.Columns["ControlType"];
                this.columnCompany = base.Columns["Company"];
                this.columnPlant = base.Columns["Plant"];
                this.columnDcdUserId = base.Columns["DcdUserId"];
                this.columnGroupID = base.Columns["GroupID"];
                this.columnControlsID = base.Columns["ControlsID"];
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            private void InitClass()
            {
                this.columnFormsID = new DataColumn("FormsID", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnFormsID);
                this.columnControlName = new DataColumn("ControlName", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnControlName);
                this.columnKey = new DataColumn("Key", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnKey);
                this.columnParentControlKey = new DataColumn("ParentControlKey", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnParentControlKey);
                this.columnControlType = new DataColumn("ControlType", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnControlType);
                this.columnCompany = new DataColumn("Company", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnCompany);
                this.columnPlant = new DataColumn("Plant", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnPlant);
                this.columnDcdUserId = new DataColumn("DcdUserId", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnDcdUserId);
                this.columnGroupID = new DataColumn("GroupID", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnGroupID);
                this.columnControlsID = new DataColumn("ControlsID", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnControlsID);
                this.columnFormsID.AllowDBNull = false;
                this.columnControlName.AllowDBNull = false;
                this.columnKey.AllowDBNull = false;
                this.columnParentControlKey.AllowDBNull = false;
                this.columnControlType.AllowDBNull = false;
                this.columnCompany.AllowDBNull = false;
                this.columnPlant.AllowDBNull = false;
                this.columnDcdUserId.AllowDBNull = false;
                this.columnGroupID.AllowDBNull = false;
                this.columnControlsID.AllowDBNull = false;
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public CustomizationDS.ControlsRow NewControlsRow()
            {
                return (CustomizationDS.ControlsRow)base.NewRow();
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
            {
                return new CustomizationDS.ControlsRow(builder);
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override System.Type GetRowType()
            {
                return typeof(CustomizationDS.ControlsRow);
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override void OnRowChanged(DataRowChangeEventArgs e)
            {
                base.OnRowChanged(e);
                if (this.ControlsRowChanged != null)
                {
                    this.ControlsRowChanged(this, new CustomizationDS.ControlsRowChangeEvent((CustomizationDS.ControlsRow)e.Row, e.Action));
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override void OnRowChanging(DataRowChangeEventArgs e)
            {
                base.OnRowChanging(e);
                if (this.ControlsRowChanging != null)
                {
                    this.ControlsRowChanging(this, new CustomizationDS.ControlsRowChangeEvent((CustomizationDS.ControlsRow)e.Row, e.Action));
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override void OnRowDeleted(DataRowChangeEventArgs e)
            {
                base.OnRowDeleted(e);
                if (this.ControlsRowDeleted != null)
                {
                    this.ControlsRowDeleted(this, new CustomizationDS.ControlsRowChangeEvent((CustomizationDS.ControlsRow)e.Row, e.Action));
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override void OnRowDeleting(DataRowChangeEventArgs e)
            {
                base.OnRowDeleting(e);
                if (this.ControlsRowDeleting != null)
                {
                    this.ControlsRowDeleting(this, new CustomizationDS.ControlsRowChangeEvent((CustomizationDS.ControlsRow)e.Row, e.Action));
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public void RemoveControlsRow(CustomizationDS.ControlsRow row)
            {
                base.Rows.Remove(row);
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
            {
                XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
                XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
                CustomizationDS customizationDS = new CustomizationDS();
                XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
                xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
                xmlSchemaAny.MinOccurs = 0m;
                xmlSchemaAny.MaxOccurs = 79228162514264337593543950335m;
                xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
                xmlSchemaSequence.Items.Add(xmlSchemaAny);
                XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
                xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                xmlSchemaAny2.MinOccurs = 1m;
                xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
                xmlSchemaSequence.Items.Add(xmlSchemaAny2);
                XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
                xmlSchemaAttribute.Name = "namespace";
                xmlSchemaAttribute.FixedValue = customizationDS.Namespace;
                xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
                XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
                xmlSchemaAttribute2.Name = "tableTypeName";
                xmlSchemaAttribute2.FixedValue = "ControlsDataTable";
                xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
                xmlSchemaComplexType.Particle = xmlSchemaSequence;
                XmlSchema schemaSerializable = customizationDS.GetSchemaSerializable();
                if (xs.Contains(schemaSerializable.TargetNamespace))
                {
                    System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
                    System.IO.MemoryStream memoryStream2 = new System.IO.MemoryStream();
                    try
                    {
                        schemaSerializable.Write(memoryStream);
                        System.Collections.IEnumerator enumerator = xs.Schemas(schemaSerializable.TargetNamespace).GetEnumerator();
                        while (enumerator.MoveNext())
                        {
                            XmlSchema xmlSchema = (XmlSchema)enumerator.Current;
                            memoryStream2.SetLength(0L);
                            xmlSchema.Write(memoryStream2);
                            if (memoryStream.Length == memoryStream2.Length)
                            {
                                memoryStream.Position = 0L;
                                memoryStream2.Position = 0L;
                                while (memoryStream.Position != memoryStream.Length && memoryStream.ReadByte() == memoryStream2.ReadByte())
                                {
                                }
                                if (memoryStream.Position == memoryStream.Length)
                                {
                                    return xmlSchemaComplexType;
                                }
                            }
                        }
                    }
                    finally
                    {
                        if (memoryStream != null)
                        {
                            memoryStream.Close();
                        }
                        if (memoryStream2 != null)
                        {
                            memoryStream2.Close();
                        }
                    }
                }
                xs.Add(schemaSerializable);
                return xmlSchemaComplexType;
            }
        }

        [XmlSchemaProvider("GetTypedTableSchema")]
        [System.Serializable]
        public class PropertiesDataTable : DataTable, System.Collections.IEnumerable
        {
            private DataColumn columnFormsID;

            private DataColumn columnControlName;

            private DataColumn columnKey;

            private DataColumn columnPropertyName;

            private DataColumn columnPropertyValue;

            private DataColumn columnCompany;

            private DataColumn columnPlant;

            private DataColumn columnDcdUserID;

            private DataColumn columnGroupID;

            private DataColumn columnPropertiesID;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event CustomizationDS.PropertiesRowChangeEventHandler PropertiesRowChanging;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event CustomizationDS.PropertiesRowChangeEventHandler PropertiesRowChanged;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event CustomizationDS.PropertiesRowChangeEventHandler PropertiesRowDeleting;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
            public event CustomizationDS.PropertiesRowChangeEventHandler PropertiesRowDeleted;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn FormsIDColumn
            {
                get
                {
                    return this.columnFormsID;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn ControlNameColumn
            {
                get
                {
                    return this.columnControlName;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn KeyColumn
            {
                get
                {
                    return this.columnKey;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn PropertyNameColumn
            {
                get
                {
                    return this.columnPropertyName;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn PropertyValueColumn
            {
                get
                {
                    return this.columnPropertyValue;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn CompanyColumn
            {
                get
                {
                    return this.columnCompany;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn PlantColumn
            {
                get
                {
                    return this.columnPlant;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn DcdUserIDColumn
            {
                get
                {
                    return this.columnDcdUserID;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn GroupIDColumn
            {
                get
                {
                    return this.columnGroupID;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataColumn PropertiesIDColumn
            {
                get
                {
                    return this.columnPropertiesID;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), Browsable(false), System.Diagnostics.DebuggerNonUserCode]
            public int Count
            {
                get
                {
                    return base.Rows.Count;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public CustomizationDS.PropertiesRow this[int index]
            {
                get
                {
                    return (CustomizationDS.PropertiesRow)base.Rows[index];
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public PropertiesDataTable()
            {
                base.TableName = "Properties";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            internal PropertiesDataTable(DataTable table)
            {
                base.TableName = table.TableName;
                if (table.CaseSensitive != table.DataSet.CaseSensitive)
                {
                    base.CaseSensitive = table.CaseSensitive;
                }
                if (table.Locale.ToString() != table.DataSet.Locale.ToString())
                {
                    base.Locale = table.Locale;
                }
                if (table.Namespace != table.DataSet.Namespace)
                {
                    base.Namespace = table.Namespace;
                }
                base.Prefix = table.Prefix;
                base.MinimumCapacity = table.MinimumCapacity;
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected PropertiesDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
            {
                this.InitVars();
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public void AddPropertiesRow(CustomizationDS.PropertiesRow row)
            {
                base.Rows.Add(row);
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public CustomizationDS.PropertiesRow AddPropertiesRow(string FormsID, string ControlName, string Key, string PropertyName, string PropertyValue, string Company, string Plant, string DcdUserID, string GroupID, string PropertiesID)
            {
                CustomizationDS.PropertiesRow propertiesRow = (CustomizationDS.PropertiesRow)base.NewRow();
                object[] itemArray = new object[]
                {
                    FormsID,
                    ControlName,
                    Key,
                    PropertyName,
                    PropertyValue,
                    Company,
                    Plant,
                    DcdUserID,
                    GroupID,
                    PropertiesID
                };
                propertiesRow.ItemArray = itemArray;
                base.Rows.Add(propertiesRow);
                return propertiesRow;
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public virtual System.Collections.IEnumerator GetEnumerator()
            {
                return base.Rows.GetEnumerator();
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public override DataTable Clone()
            {
                CustomizationDS.PropertiesDataTable propertiesDataTable = (CustomizationDS.PropertiesDataTable)base.Clone();
                propertiesDataTable.InitVars();
                return propertiesDataTable;
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override DataTable CreateInstance()
            {
                return new CustomizationDS.PropertiesDataTable();
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            internal void InitVars()
            {
                this.columnFormsID = base.Columns["FormsID"];
                this.columnControlName = base.Columns["ControlName"];
                this.columnKey = base.Columns["Key"];
                this.columnPropertyName = base.Columns["PropertyName"];
                this.columnPropertyValue = base.Columns["PropertyValue"];
                this.columnCompany = base.Columns["Company"];
                this.columnPlant = base.Columns["Plant"];
                this.columnDcdUserID = base.Columns["DcdUserID"];
                this.columnGroupID = base.Columns["GroupID"];
                this.columnPropertiesID = base.Columns["PropertiesID"];
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            private void InitClass()
            {
                this.columnFormsID = new DataColumn("FormsID", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnFormsID);
                this.columnControlName = new DataColumn("ControlName", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnControlName);
                this.columnKey = new DataColumn("Key", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnKey);
                this.columnPropertyName = new DataColumn("PropertyName", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnPropertyName);
                this.columnPropertyValue = new DataColumn("PropertyValue", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnPropertyValue);
                this.columnCompany = new DataColumn("Company", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnCompany);
                this.columnPlant = new DataColumn("Plant", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnPlant);
                this.columnDcdUserID = new DataColumn("DcdUserID", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnDcdUserID);
                this.columnGroupID = new DataColumn("GroupID", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnGroupID);
                this.columnPropertiesID = new DataColumn("PropertiesID", typeof(string), null, MappingType.Element);
                base.Columns.Add(this.columnPropertiesID);
                this.columnFormsID.AllowDBNull = false;
                this.columnControlName.AllowDBNull = false;
                this.columnKey.AllowDBNull = false;
                this.columnPropertyName.AllowDBNull = false;
                this.columnPropertyValue.AllowDBNull = false;
                this.columnCompany.AllowDBNull = false;
                this.columnPlant.AllowDBNull = false;
                this.columnDcdUserID.AllowDBNull = false;
                this.columnGroupID.AllowDBNull = false;
                this.columnPropertiesID.AllowDBNull = false;
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public CustomizationDS.PropertiesRow NewPropertiesRow()
            {
                return (CustomizationDS.PropertiesRow)base.NewRow();
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
            {
                return new CustomizationDS.PropertiesRow(builder);
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override System.Type GetRowType()
            {
                return typeof(CustomizationDS.PropertiesRow);
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override void OnRowChanged(DataRowChangeEventArgs e)
            {
                base.OnRowChanged(e);
                if (this.PropertiesRowChanged != null)
                {
                    this.PropertiesRowChanged(this, new CustomizationDS.PropertiesRowChangeEvent((CustomizationDS.PropertiesRow)e.Row, e.Action));
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override void OnRowChanging(DataRowChangeEventArgs e)
            {
                base.OnRowChanging(e);
                if (this.PropertiesRowChanging != null)
                {
                    this.PropertiesRowChanging(this, new CustomizationDS.PropertiesRowChangeEvent((CustomizationDS.PropertiesRow)e.Row, e.Action));
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override void OnRowDeleted(DataRowChangeEventArgs e)
            {
                base.OnRowDeleted(e);
                if (this.PropertiesRowDeleted != null)
                {
                    this.PropertiesRowDeleted(this, new CustomizationDS.PropertiesRowChangeEvent((CustomizationDS.PropertiesRow)e.Row, e.Action));
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            protected override void OnRowDeleting(DataRowChangeEventArgs e)
            {
                base.OnRowDeleting(e);
                if (this.PropertiesRowDeleting != null)
                {
                    this.PropertiesRowDeleting(this, new CustomizationDS.PropertiesRowChangeEvent((CustomizationDS.PropertiesRow)e.Row, e.Action));
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public void RemovePropertiesRow(CustomizationDS.PropertiesRow row)
            {
                base.Rows.Remove(row);
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
            {
                XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
                XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
                CustomizationDS customizationDS = new CustomizationDS();
                XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
                xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
                xmlSchemaAny.MinOccurs = 0m;
                xmlSchemaAny.MaxOccurs = 79228162514264337593543950335m;
                xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
                xmlSchemaSequence.Items.Add(xmlSchemaAny);
                XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
                xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                xmlSchemaAny2.MinOccurs = 1m;
                xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
                xmlSchemaSequence.Items.Add(xmlSchemaAny2);
                XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
                xmlSchemaAttribute.Name = "namespace";
                xmlSchemaAttribute.FixedValue = customizationDS.Namespace;
                xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
                XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
                xmlSchemaAttribute2.Name = "tableTypeName";
                xmlSchemaAttribute2.FixedValue = "PropertiesDataTable";
                xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
                xmlSchemaComplexType.Particle = xmlSchemaSequence;
                XmlSchema schemaSerializable = customizationDS.GetSchemaSerializable();
                if (xs.Contains(schemaSerializable.TargetNamespace))
                {
                    System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
                    System.IO.MemoryStream memoryStream2 = new System.IO.MemoryStream();
                    try
                    {
                        schemaSerializable.Write(memoryStream);
                        System.Collections.IEnumerator enumerator = xs.Schemas(schemaSerializable.TargetNamespace).GetEnumerator();
                        while (enumerator.MoveNext())
                        {
                            XmlSchema xmlSchema = (XmlSchema)enumerator.Current;
                            memoryStream2.SetLength(0L);
                            xmlSchema.Write(memoryStream2);
                            if (memoryStream.Length == memoryStream2.Length)
                            {
                                memoryStream.Position = 0L;
                                memoryStream2.Position = 0L;
                                while (memoryStream.Position != memoryStream.Length && memoryStream.ReadByte() == memoryStream2.ReadByte())
                                {
                                }
                                if (memoryStream.Position == memoryStream.Length)
                                {
                                    return xmlSchemaComplexType;
                                }
                            }
                        }
                    }
                    finally
                    {
                        if (memoryStream != null)
                        {
                            memoryStream.Close();
                        }
                        if (memoryStream2 != null)
                        {
                            memoryStream2.Close();
                        }
                    }
                }
                xs.Add(schemaSerializable);
                return xmlSchemaComplexType;
            }
        }

        public class ControlsRow : DataRow
        {
            private CustomizationDS.ControlsDataTable tableControls;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string FormsID
            {
                get
                {
                    return (string)base[this.tableControls.FormsIDColumn];
                }
                set
                {
                    base[this.tableControls.FormsIDColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string ControlName
            {
                get
                {
                    return (string)base[this.tableControls.ControlNameColumn];
                }
                set
                {
                    base[this.tableControls.ControlNameColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string Key
            {
                get
                {
                    return (string)base[this.tableControls.KeyColumn];
                }
                set
                {
                    base[this.tableControls.KeyColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string ParentControlKey
            {
                get
                {
                    return (string)base[this.tableControls.ParentControlKeyColumn];
                }
                set
                {
                    base[this.tableControls.ParentControlKeyColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string ControlType
            {
                get
                {
                    return (string)base[this.tableControls.ControlTypeColumn];
                }
                set
                {
                    base[this.tableControls.ControlTypeColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string Company
            {
                get
                {
                    return (string)base[this.tableControls.CompanyColumn];
                }
                set
                {
                    base[this.tableControls.CompanyColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string Plant
            {
                get
                {
                    return (string)base[this.tableControls.PlantColumn];
                }
                set
                {
                    base[this.tableControls.PlantColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string DcdUserId
            {
                get
                {
                    return (string)base[this.tableControls.DcdUserIdColumn];
                }
                set
                {
                    base[this.tableControls.DcdUserIdColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string GroupID
            {
                get
                {
                    return (string)base[this.tableControls.GroupIDColumn];
                }
                set
                {
                    base[this.tableControls.GroupIDColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string ControlsID
            {
                get
                {
                    return (string)base[this.tableControls.ControlsIDColumn];
                }
                set
                {
                    base[this.tableControls.ControlsIDColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            internal ControlsRow(DataRowBuilder rb) : base(rb)
            {
                this.tableControls = (CustomizationDS.ControlsDataTable)base.Table;
            }
        }

        public class PropertiesRow : DataRow
        {
            private CustomizationDS.PropertiesDataTable tableProperties;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string FormsID
            {
                get
                {
                    return (string)base[this.tableProperties.FormsIDColumn];
                }
                set
                {
                    base[this.tableProperties.FormsIDColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string ControlName
            {
                get
                {
                    return (string)base[this.tableProperties.ControlNameColumn];
                }
                set
                {
                    base[this.tableProperties.ControlNameColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string Key
            {
                get
                {
                    return (string)base[this.tableProperties.KeyColumn];
                }
                set
                {
                    base[this.tableProperties.KeyColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string PropertyName
            {
                get
                {
                    return (string)base[this.tableProperties.PropertyNameColumn];
                }
                set
                {
                    base[this.tableProperties.PropertyNameColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string PropertyValue
            {
                get
                {
                    return (string)base[this.tableProperties.PropertyValueColumn];
                }
                set
                {
                    base[this.tableProperties.PropertyValueColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string Company
            {
                get
                {
                    return (string)base[this.tableProperties.CompanyColumn];
                }
                set
                {
                    base[this.tableProperties.CompanyColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string Plant
            {
                get
                {
                    return (string)base[this.tableProperties.PlantColumn];
                }
                set
                {
                    base[this.tableProperties.PlantColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string DcdUserID
            {
                get
                {
                    return (string)base[this.tableProperties.DcdUserIDColumn];
                }
                set
                {
                    base[this.tableProperties.DcdUserIDColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string GroupID
            {
                get
                {
                    return (string)base[this.tableProperties.GroupIDColumn];
                }
                set
                {
                    base[this.tableProperties.GroupIDColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public string PropertiesID
            {
                get
                {
                    return (string)base[this.tableProperties.PropertiesIDColumn];
                }
                set
                {
                    base[this.tableProperties.PropertiesIDColumn] = value;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            internal PropertiesRow(DataRowBuilder rb) : base(rb)
            {
                this.tableProperties = (CustomizationDS.PropertiesDataTable)base.Table;
            }
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        public class ControlsRowChangeEvent : System.EventArgs
        {
            private CustomizationDS.ControlsRow eventRow;

            private DataRowAction eventAction;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public CustomizationDS.ControlsRow Row
            {
                get
                {
                    return this.eventRow;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataRowAction Action
            {
                get
                {
                    return this.eventAction;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public ControlsRowChangeEvent(CustomizationDS.ControlsRow row, DataRowAction action)
            {
                this.eventRow = row;
                this.eventAction = action;
            }
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
        public class PropertiesRowChangeEvent : System.EventArgs
        {
            private CustomizationDS.PropertiesRow eventRow;

            private DataRowAction eventAction;

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public CustomizationDS.PropertiesRow Row
            {
                get
                {
                    return this.eventRow;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public DataRowAction Action
            {
                get
                {
                    return this.eventAction;
                }
            }

            [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
            public PropertiesRowChangeEvent(CustomizationDS.PropertiesRow row, DataRowAction action)
            {
                this.eventRow = row;
                this.eventAction = action;
            }
        }

        private CustomizationDS.ControlsDataTable tableControls;

        private CustomizationDS.PropertiesDataTable tableProperties;

        private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Content), System.Diagnostics.DebuggerNonUserCode]
        public CustomizationDS.ControlsDataTable Controls
        {
            get
            {
                return this.tableControls;
            }
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Content), System.Diagnostics.DebuggerNonUserCode]
        public CustomizationDS.PropertiesDataTable Properties
        {
            get
            {
                return this.tableProperties;
            }
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), Browsable(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible), System.Diagnostics.DebuggerNonUserCode]
        public override SchemaSerializationMode SchemaSerializationMode
        {
            get
            {
                return this._schemaSerializationMode;
            }
            set
            {
                this._schemaSerializationMode = value;
            }
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), System.Diagnostics.DebuggerNonUserCode]
        public new DataTableCollection Tables
        {
            get
            {
                return base.Tables;
            }
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), System.Diagnostics.DebuggerNonUserCode]
        public new DataRelationCollection Relations
        {
            get
            {
                return base.Relations;
            }
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        public CustomizationDS()
        {
            base.BeginInit();
            this.InitClass();
            CollectionChangeEventHandler value = new CollectionChangeEventHandler(this.SchemaChanged);
            base.Tables.CollectionChanged += value;
            base.Relations.CollectionChanged += value;
            base.EndInit();
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        protected CustomizationDS(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context, false)
        {
            if (base.IsBinarySerialized(info, context))
            {
                this.InitVars(false);
                CollectionChangeEventHandler value = new CollectionChangeEventHandler(this.SchemaChanged);
                this.Tables.CollectionChanged += value;
                this.Relations.CollectionChanged += value;
                return;
            }
            string s = (string)info.GetValue("XmlSchema", typeof(string));
            if (base.DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema)
            {
                DataSet dataSet = new DataSet();
                dataSet.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(s)));
                if (dataSet.Tables["Controls"] != null)
                {
                    base.Tables.Add(new CustomizationDS.ControlsDataTable(dataSet.Tables["Controls"]));
                }
                if (dataSet.Tables["Properties"] != null)
                {
                    base.Tables.Add(new CustomizationDS.PropertiesDataTable(dataSet.Tables["Properties"]));
                }
                base.DataSetName = dataSet.DataSetName;
                base.Prefix = dataSet.Prefix;
                base.Namespace = dataSet.Namespace;
                base.Locale = dataSet.Locale;
                base.CaseSensitive = dataSet.CaseSensitive;
                base.EnforceConstraints = dataSet.EnforceConstraints;
                base.Merge(dataSet, false, MissingSchemaAction.Add);
                this.InitVars();
            }
            else
            {
                base.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(s)));
            }
            base.GetSerializationData(info, context);
            CollectionChangeEventHandler value2 = new CollectionChangeEventHandler(this.SchemaChanged);
            base.Tables.CollectionChanged += value2;
            this.Relations.CollectionChanged += value2;
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        protected override void InitializeDerivedDataSet()
        {
            base.BeginInit();
            this.InitClass();
            base.EndInit();
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        public override DataSet Clone()
        {
            CustomizationDS customizationDS = (CustomizationDS)base.Clone();
            customizationDS.InitVars();
            customizationDS.SchemaSerializationMode = this.SchemaSerializationMode;
            return customizationDS;
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        protected override bool ShouldSerializeTables()
        {
            return false;
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        protected override bool ShouldSerializeRelations()
        {
            return false;
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        protected override void ReadXmlSerializable(XmlReader reader)
        {
            if (base.DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema)
            {
                this.Reset();
                DataSet dataSet = new DataSet();
                dataSet.ReadXml(reader);
                if (dataSet.Tables["Controls"] != null)
                {
                    base.Tables.Add(new CustomizationDS.ControlsDataTable(dataSet.Tables["Controls"]));
                }
                if (dataSet.Tables["Properties"] != null)
                {
                    base.Tables.Add(new CustomizationDS.PropertiesDataTable(dataSet.Tables["Properties"]));
                }
                base.DataSetName = dataSet.DataSetName;
                base.Prefix = dataSet.Prefix;
                base.Namespace = dataSet.Namespace;
                base.Locale = dataSet.Locale;
                base.CaseSensitive = dataSet.CaseSensitive;
                base.EnforceConstraints = dataSet.EnforceConstraints;
                base.Merge(dataSet, false, MissingSchemaAction.Add);
                this.InitVars();
                return;
            }
            base.ReadXml(reader);
            this.InitVars();
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        protected override XmlSchema GetSchemaSerializable()
        {
            System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
            base.WriteXmlSchema(new XmlTextWriter(memoryStream, null));
            memoryStream.Position = 0L;
            return XmlSchema.Read(new XmlTextReader(memoryStream), null);
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        internal void InitVars()
        {
            this.InitVars(true);
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        internal void InitVars(bool initTable)
        {
            this.tableControls = (CustomizationDS.ControlsDataTable)base.Tables["Controls"];
            if (initTable && this.tableControls != null)
            {
                this.tableControls.InitVars();
            }
            this.tableProperties = (CustomizationDS.PropertiesDataTable)base.Tables["Properties"];
            if (initTable && this.tableProperties != null)
            {
                this.tableProperties.InitVars();
            }
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        private void InitClass()
        {
            base.DataSetName = "CustomizationDS";
            base.Prefix = "";
            base.Namespace = "http://tempuri.org/XMLSchema.xsd";
            base.Locale = new System.Globalization.CultureInfo("");
            base.EnforceConstraints = true;
            this.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
            this.tableControls = new CustomizationDS.ControlsDataTable();
            base.Tables.Add(this.tableControls);
            this.tableProperties = new CustomizationDS.PropertiesDataTable();
            base.Tables.Add(this.tableProperties);
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        private bool ShouldSerializeControls()
        {
            return false;
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        private bool ShouldSerializeProperties()
        {
            return false;
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        private void SchemaChanged(object sender, CollectionChangeEventArgs e)
        {
            if (e.Action == CollectionChangeAction.Remove)
            {
                this.InitVars();
            }
        }

        [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), System.Diagnostics.DebuggerNonUserCode]
        public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
        {
            CustomizationDS customizationDS = new CustomizationDS();
            XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
            XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
            XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
            xmlSchemaAny.Namespace = customizationDS.Namespace;
            xmlSchemaSequence.Items.Add(xmlSchemaAny);
            xmlSchemaComplexType.Particle = xmlSchemaSequence;
            XmlSchema schemaSerializable = customizationDS.GetSchemaSerializable();
            if (xs.Contains(schemaSerializable.TargetNamespace))
            {
                System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
                System.IO.MemoryStream memoryStream2 = new System.IO.MemoryStream();
                try
                {
                    schemaSerializable.Write(memoryStream);
                    System.Collections.IEnumerator enumerator = xs.Schemas(schemaSerializable.TargetNamespace).GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        XmlSchema xmlSchema = (XmlSchema)enumerator.Current;
                        memoryStream2.SetLength(0L);
                        xmlSchema.Write(memoryStream2);
                        if (memoryStream.Length == memoryStream2.Length)
                        {
                            memoryStream.Position = 0L;
                            memoryStream2.Position = 0L;
                            while (memoryStream.Position != memoryStream.Length && memoryStream.ReadByte() == memoryStream2.ReadByte())
                            {
                            }
                            if (memoryStream.Position == memoryStream.Length)
                            {
                                return xmlSchemaComplexType;
                            }
                        }
                    }
                }
                finally
                {
                    if (memoryStream != null)
                    {
                        memoryStream.Close();
                    }
                    if (memoryStream2 != null)
                    {
                        memoryStream2.Close();
                    }
                }
            }
            xs.Add(schemaSerializable);
            return xmlSchemaComplexType;
        }
    }
}
